package com.rybbaby.tss.platform.sysCourseSystem.dao.imp;

import com.rybbaby.tss.core.web.dao.imp.GenericDao;
import com.rybbaby.tss.platform.sysCourseSystem.dao.ISysCourseSystemDao;
import com.rybbaby.tss.platform.sysCourseSystem.entity.SysCourseSystem;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description 部门数据库操作实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 下午7:57:36
 */
@Repository
public class SysCourseSystemDaoImp extends GenericDao<SysCourseSystem> implements ISysCourseSystemDao {

    /**
     * 根据父级Id获取下级城市/区/县
     *
     * @param pId 父级Id
     * @return
     */
    @Override
    public List<SysCourseSystem> getChildrens(String pId) {
        return this.findByHql("from SysCourseSystem where pId='"+pId+"'");
    }
	
}
